<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" />
		<link rel="stylesheet" href="<%=path%>/css/Site.css" />
		<link rel="stylesheet" href="<%=path%>/css/zy.all.css" />
		<link rel="stylesheet" href="<%=path%>/css/font-awesome.min.css" />
		<link rel="stylesheet" href="<%=path%>/css/amazeui.min.css" />
		<link rel="stylesheet" href="<%=path%>/css/admin.css" />
		<style>
		
		</style>
	<body>
		<div class="dvcontent">

			<div>
				<!--tab start-->
				<div class="tabs">
					<div class="hd">
						<ul style="">
							<li style="box-sizing: initial;-webkit-box-sizing: initial;" class="on">校内新闻/活动</li>
						</ul>
					</div>
					<div class="bd">
						<ul style="display: block;padding: 20px;">
							<li>
								<div id="dv1">
									<table class="table" id="tbRecord">
										<thead>
										<tr>
											<th>新闻编号</th>
											<th>类别</th>
											<th>标题</th>
											<th>图片</th>
											<th>内容</th>
											<th>时间</th>
										</tr>
										</thead>
										<c:forEach items="${info.list}" var="news">
										<tbody>
										<tr>
											<td>${news.newsId}</td>
											<td>${news.category}</td>
											<td>${news.title}</td>
											<td>${news.photo}</td>
											<td>${news.body}</td>
											<td>${news.createTime}</td>
										</tr>
										</c:forEach>
										<tr>
											<td colspan="7">
												<c:if test="${info.pageNum !=1}">
													<a href="<%=path%>/t_teacher/listAllNews?page=1&key=${key}">首页</a>
													<a href="<%=path%>/t_teacher/listAllNews?page=${info.prePage}&key=${key}">上一页</a>
												</c:if>
												<c:if test="${info.pageNum==1}">
													首页
													上一页
												</c:if>
												<c:forEach items="${info.navigatepageNums}" var="num">
													<c:if test="${num == info.pageNum}">
														【${num}】
													</c:if>
													<c:if test="${num != info.pageNum}">
														<a href="<%=path%>/t_teacher/listAllNews?page=${num}&key=${key}">${num}</a>
													</c:if>
												</c:forEach>
												<c:if test="${info.pageNum!=info.pages}">
													<a href="<%=path%>/t_teacher/listAllNews?page=${info.nextPage}&key=${key}">下一页</a>
													<a href="<%=path%>/t_teacher/listAllNews?page=${info.pages}&key=${key}">末页</a>
												</c:if>
												<c:if test="${info.pageNum == info.pages}">
													下一页
													末页
												</c:if>
											</td>
										</tr>
										</tbody>
									</table>
								</div>
							</li>
						</ul>
						<ul class="theme-popbod dform" style="display: none;">
							<div class="am-cf admin-main" style="padding-top: 0px;">
			<!-- content start -->
			
	<div class="am-cf admin-main" style="padding-top: 0px;">
		<!-- content start -->
		<!-- content end -->
	</div>
							<!-- end-->
						</ul>
					</div>
				</div>
				<!--tab end-->

			</div>

		</div>
	</body>

</html>